# projectA/Makefile
# CC = gcc
# CFLAGS = -Wall -g -Iinclude
# SRCS = src/calculator.c
# OBJS = $(SRCS:src/%.c=lib/%.o)
# LIB = lib/libcal.a
# EXEC = main
# all: $(EXEC)
# lib/%.o: src/%.c
#     $(CC) $(CFLAGS) -c $< -o $@
#     $(LIB): $(OBJS)
#         ar rcs $@ $^
#         $(EXEC): src/main.c $(LIB)
#             $(CC) $(CFLAGS) $< -Llib -lcal -o $@
#             clean:
#                 rm -f $(OBJS) $(LIB) $(EXEC)
